<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>道路车辆智能监测系统</title>
	<link href="css/start/jquery-ui-1.10.3.custom.css" rel="stylesheet" id="mycss">
	<link href="css/rvims.css" rel="stylesheet" >
	<script src="js/jquery-1.9.1.js"></script>
	<script src="js/jquery-ui-1.10.3.custom.js"></script>
	
	<script src="js/common.js"></script>
	<script src="js/control.js"></script>
	<script>
		$(function() {
			$( ".datepicker" ).datepicker({
				dateFormat:'yy-mm-dd'
			});
			$( "button" ).button();
			findControlTaskSearchList(0);
		});
	</script>
</head>
<body>
	<div id="maindiv">
		<%@ include file="../common/header.jsp"%>
		<div id="content">
			<h3>布控任务 >> 查询布控任务</h3>
			<div>
				<div id="sltControlTask" style="width:100%;">
					<table>
						<tr>
							<td><label>任务名称</label></td>
							<td><input type="text" id="txtCTaskName"></td>
							<td><label>任务状态</label></td>
							<td>
								<select id="sltIsUse">
									<option value="">--所有--</option>
									<option value="1">--启用--</option>
									<option value="0">--禁用--</option>
								</select>
							</td>
							<td valign="bottom" rowspan="3">
								<button style="margin-left:20px;" onclick="findControlTaskSearchList()">查询</button>
								<button style="margin-left:20px;"onclick="clearInput('sltControlTask');">重置</button>			
							</td>
						</tr>
						<tr>
							<td><label>任务生效时间</label></td>
							<td><input type="text" class="datepicker" id="strDateBegin" readonly="readonly"/></td>
							<td><label>到</label></td>
							<td><input type="text" class="datepicker" id="strDateEnd"  readonly="readonly"/></td>
						</tr>
						<tr>
							<td><label>任务过期时间</label></td>
							<td><input type="text" class="datepicker" id="strDateBegin1" readonly="readonly"/></td>
							<td><label>到</label></td>
							<td><input type="text" class="datepicker" id="strDateEnd1" readonly="readonly"/></td>
						</tr>
					</table>
				</div>
				<div style="width:100%;height:40px;clear:both;margin-top:20px;">
					<button style="float:left;" onclick="window.location.href='showControlTaskAdd.do'">添加</button>
					<button style="float:left;margin-left:10px;" onclick="showControlTaskEdit()">修改</button>
					<button style="float:left;margin-left:10px;" onclick="showControlTaskView()">查看</button>
					<button style="float:left;margin-left:10px;" onclick="deleteControlTaskById()">删除</button>
					<button style="float:left;margin-left:100px;" onclick="updateUseControlTaskState('yes')">启用</button>
					<button style="float:left;margin-left:10px;" onclick="updateUseControlTaskState('no')">禁用</button>
				</div>
				<form id="fmControlTask"  method="post"><input type="hidden" id="controlTaskId" name="controlTaskId"></form>
				<div id="listControlTaskBox" style="width:100%;clear:left">
				</div>
			</div>
		</div>
		<%@ include file="../common/footer.jsp"%>
	</div>		
</body>
</html>